let str="aabaaba"
let arr=str.split(str.slice(0,1))

console.log(arr)